#include <cstdint>
#include <ios>
#include <iostream>

using ll = int64_t;

const ll maxn = 1e5+5;
ll T,n,m,L,V,d[maxn],v[maxn],a[maxn];

static inline void solve(){
    std::cin>>n>>m>>L>>V;
    for(ll i=1;i<=n;i++){
        std::cin>>d[i]>>v[i]>>a[i];
    }
    
}

int main(){
    std::ios_base::sync_with_stdio(false);
    std::cin.tie(nullptr);

    std::cin>>T;
    while(T--){
        solve();
    }
}